<?php

class Contact_model extends Model{

	var $table_name = 'contact';
	
	function Contact_model()
	{
		parent::Model();
	}
	
	function insert($status = 'I')
	{			
		$data = array(
			'name' => $this->input->post('name'),
			'email' => $this->input->post('email'),
			'telp'=>$this->input->post('phone'),
			'message'=>$this->input->post('message'),
			'created_date'=>date("Y-m-d H:i:s"),
			'status'=>$status
		);
		
		$this->db->insert($this->table_name,$data);
	
	}
}

/* End of file Kontak_model.php */
/* Location: ./system/application/models/kontak_model.php */	
?>